package com.tianyi.dao.entity.userRegion;

import java.io.Serializable;
import java.util.Date;

public class UserRegion implements Serializable {
    /**
     * id
     * 表字段 ：id
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private Long id;

    /**
     * 创建时间
     * 表字段 ：gmt_create
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private Date gmtCreate;

    /**
     * 修改时间
     * 表字段 ：gmt_modified
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private Date gmtModified;

    /**
     * 省 市 区
     * 表字段 ：region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private String region;

    /**
     * 详细地址
     * 表字段 ：area
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private String area;

    /**
     * 收获电话/手机
     * 表字段 ：phone
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private String phone;

    /**
     * 关联id
     * 表字段 ：com_user_id
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private Long comUserId;

    /**
     * 是否默认
     * 表字段 ：is_def
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private Boolean isDef;

    /**
     * 收货人姓名
     * 表字段 ：consignee
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private String consignee;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withId(Long id) {
        this.setId(id);
        return this;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withGmtCreate(Date gmtCreate) {
        this.setGmtCreate(gmtCreate);
        return this;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withGmtModified(Date gmtModified) {
        this.setGmtModified(gmtModified);
        return this;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getRegion() {
        return region;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withRegion(String region) {
        this.setRegion(region);
        return this;
    }

    public void setRegion(String region) {
        this.region = region == null ? null : region.trim();
    }

    public String getArea() {
        return area;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withArea(String area) {
        this.setArea(area);
        return this;
    }

    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    public String getPhone() {
        return phone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withPhone(String phone) {
        this.setPhone(phone);
        return this;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Long getComUserId() {
        return comUserId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withComUserId(Long comUserId) {
        this.setComUserId(comUserId);
        return this;
    }

    public void setComUserId(Long comUserId) {
        this.comUserId = comUserId;
    }

    public Boolean getIsDef() {
        return isDef;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withIsDef(Boolean isDef) {
        this.setIsDef(isDef);
        return this;
    }

    public void setIsDef(Boolean isDef) {
        this.isDef = isDef;
    }

    public String getConsignee() {
        return consignee;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    public UserRegion withConsignee(String consignee) {
        this.setConsignee(consignee);
        return this;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee == null ? null : consignee.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table user_region
     *
     * @mbg.generated Fri May 08 22:11:37 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", region=").append(region);
        sb.append(", area=").append(area);
        sb.append(", phone=").append(phone);
        sb.append(", comUserId=").append(comUserId);
        sb.append(", isDef=").append(isDef);
        sb.append(", consignee=").append(consignee);
        sb.append("]");
        return sb.toString();
    }
}